package com.mowwang.file;

import java.io.File;
import java.io.IOException;

public class Rename {
    public static void rename() {
        File fileb=new File("d:/c.txt");
        System.out.println(fileb.renameTo(new File("d:/fileNew.txt")));
    }

    public static void main(String[] args) throws IOException {
        rename();
    }
}
